package models;

import play.*;
import play.data.validation.MaxSize;
import play.data.validation.MinSize;
import play.data.validation.Required;
import play.db.jpa.*;

import javax.persistence.*;

import models.rbac.Role;

import java.util.*;

/**
 * 商城管理员
 * @author justin
 *
 */
@Entity
public class Administrator extends BaseEntity {
    
	@Required
	public String username;
	@Required
	@MaxSize(value=20)
	@MinSize(value=8)
	public String password;
	
	@Required
	public String realname;
	
	@Required
	@ManyToOne
	public Role role;
}
